package com.itheima.method;

public class Test4 {
    public static void main(String[] args) {
        System.out.println(max(2,3,8));
    }

    public static int max(int a, int b, int c) {
        int num = a > b ? a : b;
        int max = num > c ? num : c;
        System.out.print(a +"," +b +","+ c +"三个整数中最大值为: " );
        return max;

    }
}
